<h1>Task List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Priority</th>
      <th>Project</th>
      <th>Status</th>
      <th>Summary</th>
      <th>Description</th>
      <th>Deadline</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($task_list as $task): ?>
    <tr>
      <td><a href="<?php echo url_for('task/show?id='.$task['id']) ?>"><?php echo $task->getid() ?></a></td>
      <td><?php echo $task->getpriority_id() ?></td>
      <td><?php echo $task->getproject_id() ?></td>
      <td><?php echo $task->getstatus_id() ?></td>
      <td><?php echo $task->getsummary() ?></td>
      <td><?php echo $task->getdescription() ?></td>
      <td><?php echo $task->getdeadline() ?></td>
      <td><?php echo $task->getcreated_at() ?></td>
      <td><?php echo $task->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('task/new') ?>">New</a>
